<!DOCTYPE html>
<html>
	<head>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<title>后台 - 开奖查询</title>
		<meta name="keywords" content="">
		<meta name="description" content="">

		<link rel="shortcut icon" href="favicon.ico">
		<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
		<link href="__PUBLIC__/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/plugins/iCheck/custom.css" rel="stylesheet">
		<link href="__PUBLIC__/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	</head>
	<style>
		/*分页样式*/
		.pages a,.pages span {
		    display:inline-block;
		    padding:4px 7px;
		    margin:0 2px;
		    border:1px solid #D5D4D4;
		    -webkit-border-radius:1px;
		    -moz-border-radius:1px;
		    border-radius:1px;
		}
		.pages a,.pages li {
		    display:inline-block;
		    list-style: none;
		    text-decoration:none; color:#3399ff;
		}
		
		.pages a:hover{
		    border-color:#3399ff;
		}
		.pages span.current{
		    background:#3399ff;
		    color:#FFF;
		    font-weight:700;
		    border-color:#3399ff;
		}
		.pages{
			text-align: center;
		}
		/*分页样式*/
		
		.layui-layer{
			top:48px !important;
		}
		
		/*
		 文字
		 * */
		
		.tab-content .wz tbody tr>*:first-child{font-weight: 500;}
		.tab-content .wz .shuzi,
		.tab-content .wz .longhu{
			width: 28px;
			height: 28px;
			line-height: 28px;
			display: inline-block;
			border: 1px solid transparent;
		}
		.tab-content .wz .shuzi{
			color:white;
			border-color:white;
			text-align: center;
			text-shadow: 0 0 2px black;
		}
		.tab-content .wz .shuzi_1{background-color: #f8dd00;}
		.tab-content .wz .shuzi_2{background-color: #1e86cf;}
		.tab-content .wz .shuzi_3{background-color: #505052;}
		.tab-content .wz .shuzi_4{background-color: #fd7215;}
		.tab-content .wz .shuzi_5{background-color: #7bd6d7;}
		.tab-content .wz .shuzi_6{background-color: #5053a2;}
		.tab-content .wz .shuzi_7{background-color: #d9d8d6;}
		.tab-content .wz .shuzi_8{background-color: #f41a2a;}
		.tab-content .wz .shuzi_9{background-color: #840a15;}
		.tab-content .wz .shuzi_10{background-color: #45b640;}

		
	</style>
	<body class="gray-bg">
		<div class="wrapper wrapper-content animated fadeInRight">	
			<div class="row">
				<div class="col-sm-12">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>开奖信息</h5>
						</div>
						<div class="ibox-content tab-content">
							<div class="row">
								<div class="col-sm-3">
									<form method="post" action="{:U('Admin/Number/index')}">
										<div class="input-group">
											<input type="text" placeholder="请输入期号" name="number" class="input-sm form-control"> <span class="input-group-btn">
	                                    	<button type="submit" class="btn btn-sm btn-primary"> 搜索</button> </span>
										</div>
									</form>
								</div>
							</div>
							<div class="wz" >
								<table class="table table-striped table-hover table-bordered" style="width:auto;overflow:auto;display:inline-block;">
									<thead>
										<tr>
											<th>ID</th>
											<th>期号</th>
											<th>开奖号码</th>
											<th>龙虎</th>
											<th>冠亚和</th>
											<th>时间</th>
											<th>是否开奖</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
										<volist name="list" id="vo">
											<tr>
												<?php
													$number = unserialize($vo['number']);
													$lh = unserialize($vo['lh']);
												?>
												<!-- <td width="20"><input type="checkbox" class="i-checks" name="ids[]"></td> -->
												<td width="60">{$vo.id}</td>
												<td width="60">{$vo.periodnumber}</td>
												<td width="300">
													<volist name="number" id="t" key="k">
														<span class="shuzi shuzi_{$t}">{$t}</span>
													</volist>
												</td>
												<td width="100">
													<volist name="lh" id="lh">
														<if condition="$lh eq '龙'">
														<span style="color:red;">{$lh}</span>
														<else/>
														<span style="color:#10c2f2;">{$lh}</span>
														</if>
													</volist>
												</td>
												<td width="100">
													<span class="tm" style="color: #000000;">{$vo.tema}</span>
													<span <if condition="$vo['tema_dx'] eq '大'">class="tm cl-red"<else/>class="tm cl-blue2"</if> >{$vo.tema_dx}</span>
													<span  <if condition="$vo['tema_ds'] eq '单'">class="tm cl-red"<else/>class="tm cl-blue2"</if> >{$vo.tema_ds}</span>
													<span <if condition="$vo['zx'] eq '庄'">class="tm cl-red"<else/>class="tm cl-blue2"</if> >{$vo.zx}</span>
													<span class="tm" <if condition="$vo['tema_dw'] eq 'B'">style="color: #10c2f2;"<else/>style="color: #ff0000;"</if> >{$vo.tema_dw}</span>
												</td>
												<td width="150">{$vo.time|date="Y-m-d H:i:s",###}</td>
												<td width="80">
													<if condition="$vo.is_open eq 1">已开奖<else/><span style="color:red;">未开奖</span></if>
												</td>
												<td>
													<if condition="$vo.is_open eq 0">
														<a href="{:U('Number/clear_out')}?number={$vo.periodnumber}" class="btn btn-primary">手动结算</a>
													</if>
												</td>
											</tr>
										</volist>
									</tbody>
								</table>
							</div>
							<div class="pages">
								{$show}
							</div>
						</div>
					</div>
				</div>

			</div>
		</div>
		<script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
		<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
		<script src="__PUBLIC__/Admin/js/plugins/iCheck/icheck.min.js"></script>
		<script src="__PUBLIC__/Common/layer/layer.js"></script>
		<script>
			$(document).ready(function() {
				$(".i-checks").iCheck({
					checkboxClass: "icheckbox_square-green",
					radioClass: "iradio_square-green",
				})
			});
		</script>
		<script>
			function integral(id){
				layer.open({
			      	type: 2,
			      	title: '会员上分',
			      	shadeClose: true,
			      	shade: false,
			     	maxmin: true, //开启最大化最小化按钮
			      	area: ['300px', '500px'],
			      	content: "__APP__/Admin/Integral/index/id/" + id + ""
			    });
			}
		</script>
	</body>

	
</html>